package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.ProductCommentCUDClientFallback;
import com.zqh.myfmmall.result.Result;
import com.zqh.myfmmall.rowbeans.entity.ProductComments;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-13 22:14
 */
@FeignClient(value = "productcomment-cud",fallbackFactory = ProductCommentCUDClientFallback.class)
public interface ProductCommentCUDClient{
    @PostMapping("productComment/create")
    Result create(@RequestBody ProductComments productComments);

    @PutMapping("productComment/update")
    Result update(@RequestBody ProductComments productComments);

    @DeleteMapping("productComment/delete/{id}")
    Result delete(@PathVariable("id") String id);
}
